package com.ygqh.baby.service;

import com.ygqh.baby.ao.FocusType;
import com.ygqh.baby.ao.PageKey;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.model.YgFocusModel;
import com.ygqh.baby.po.YgFocus;

import java.util.List;

public interface YgFocusService {


    List<YgFocus> find();

    int findCount();

    YgFocus findById(Long id);

    int save(YgFocus ygFocus);

    int update(YgFocus ygFocus);

    int saveOrUpdate(YgFocus ygFocus);

    ResultSet<YgFocus> search(QueryInfo queryInfo, String q, FocusType focusType, PageKey pageKey);

    List<YgFocusModel> searchModel(FocusType focusType, String pageKey);

    List<YgFocusModel> searchModelByCache(FocusType focusType, String... pageKey);

    List<YgFocusModel> searchYiJiDianModel(FocusType focus);


}
